package Common.Entities;
import java.io.Serializable;


/**
 * This class holds the Permission's entity properties and methods
 * @author Ola
 *
 */
public class Permission implements Serializable{

	private static final long serialVersionUID = 1L;
    private String permissionID;
    private int permissionType;
    private String categoryID;
    private String customerID;
    
    public void setCustomerID(String customerID) {
    	this.customerID = customerID;
    }
    
    public String getCustomerID() {
    	return this.customerID;
    }
	public String getPermissionID() {
		return permissionID;
	}
	public void setPermissionID(String permissionID) {
		this.permissionID = permissionID;
	}
	public int getPermissionType() {
		return permissionType;
	}
	public void setPermissionType(int permissionType) {
		this.permissionType = permissionType;
	}
	public String getCategoryID() {
		return categoryID;
	}
	public void setPerDescription(String categoryID) {
		this.categoryID = categoryID;
	}
	
	/**
	 * Permission's constructor with 2 parameters
	 * @param permissionType
	 * @param categoryID
	 */
	public Permission(int permissionType, String categoryID, String customerID) {
		super();
		this.permissionType = permissionType;
		this.categoryID = categoryID;
		this.customerID = customerID;
	}
	/**
	 * Permission's constructor with 3 parameters
	 * @param permissionID
	 * @param permissionType
	 * @param categoryID
	 */
	public Permission(String permissionID, int permissionType,
			String categoryID, String customerID) {
		super();
		this.permissionID = permissionID;
		this.permissionType = permissionType;
		this.categoryID = categoryID;
		this.customerID = customerID;
	}
}
